// Initialize the agent at application startup.
if (!window.fpPromise) {
    window.fpPromise = import('https://openfpcdn.io/fingerprintjs/v3')
        .then(FingerprintJS => FingerprintJS.load())
}
if (!window.visitorId) {
// Get the visitor identifier when you need it.
    window.fpPromise
        .then(fp => fp.get())
        .then(result => {
            // 浏览器指纹ID，清楚cookie，隐身模式均不会发生变化
            window.visitorId = result.visitorId
        })
}


